home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util1
/
su.rea
< prev
next >
Wrap
Text File
|
1996-01-16
|
1KB
|
36 lines
Short: Su command for muFS (spawns off new shell also).
Author: Chris Mc Carthy (cmccarth@icl.rtc-cork.ie)
Uploader: cmccarth@icl.rtc-cork.ie
Type: util/cli
Substitute User (for muFS).
----------------------------------------------
Program to do the equivilant of the *IX su command (Substitute User)
for the MultiUserFileSystem.
If 1 argument is given (the userid), an attempt will be made to create
a new shell under the new userid's uid. If the argument is the userid
"root" (the superuser), or if there are no arguments given (in which case
it defaults to "root"), the su program will check to see if the current
user is a member of the group root (either primary or secondary).
If the user is not in the group root, the program will return
unsuccessfully.
Next the password of the new user is requested, if the password matches
the password of the supplied userid, then a new shell is spawned with the
new user's uid, and the su program returns, and so does not wait for the
other shell to return.
Failed/Successfull attempts at su may/may not be logged in the
multiuser.log file. This is handled my the multiuser.server, so it depends
on your config file.
NOTE: The super-user (root) does not need a password to su to any other
user.
To install, just copy the binary "su" to somewhere in your command
path, e.g. c:
This program requires MultiUser, © Copyright 1993-1994 by Geert Uytterhoeven.